package com.dao.purchase;

import com.model.purchase.PurchaseSupplyOffer;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * @description purchase_supply_offer
 * @author chenjun
 * @date 2022-02-25
 */
public interface SupplyOfferMapper {

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int insert(PurchaseSupplyOffer purchaseSupplyOffer);

	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int delete(@Param("inqId") String inqId, @Param("infId") String infId);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int update(PurchaseSupplyOffer purchaseSupplyOffer);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	PurchaseSupplyOffer load(@Param("inqId") String inqId, @Param("infId") String infId);

	/**
	 * 查询 分页查询
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	List<PurchaseSupplyOffer> pageList(int offset, int pagesize);

	/**
	 * 查询 分页查询 count
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int pageListCount(int offset, int pagesize);
	
	
	//查询列表
	List<PurchaseSupplyOffer> selectSupplyOfferList(Map<String, Object> map);

	// 查询询价书列表总数
	int selectSupplyOfferListCount(Map<String, Object> map); 
	
	//删除询价书下所有报价
	int deleteByInqId(String inqId);

}
